/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data.Diagram;
import java.awt.Graphics;
import java.awt.Graphics2D;

/**
 *
 * @author Sean
 */
public class System extends Diagram {
    private String name;
    private int x;
    private int y;
    private int w;
    private int h;

    public System(String name, int x, int y, int w, int h) {
        this.name = name;
        this.x = x;
        this.y = y;
        this.w = w;
        this.h = h;
    }

    public void draw(Graphics g){
        Graphics2D g2 = (Graphics2D) g;
        g2.drawString(name, (x+137), y);
        y = y + 10;
        g2.drawRect(x, y, w, h);
    }

}
